July 31, 2024
v3 Get eSIM
Description:
Retrieves an esim info.
URI:
https://api.multitel.net/v3/get_esim/{esim_id}
Parameters:
Required: esim_id - Unique ID of requested eSIM
Security:
Basic authentication is a simple authentication scheme built into the HTTP protocol. To use it, send your HTTP requests with an Authorization header that contains the word Basic followed by a space and a base64-encoded string username:password. Example: Authorization: Basic ZGVtbzpwQDU1dzByZA==
Methods:
GET
Sample output:
{ "status": { "code": 200, "msg": "" }, "response": { "id": "26dc9c21bb0c6d01539c4deb20ae1e77", "manual_code": "TN2024041911313957EA31B9", "smdp_address": "consumer.e-sim.global", "auto_apn": 1, "apn": "globaldata", "state": "RELEASED", "service_status": "active", "network_status": "ENABLED", "tag": "", "date_created": "2024-07-31 14:59:23" } }
Sample code:
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL =>'https://api.multitel.net/v3/get_esim/26dc9c21bb0c6d01539c4deb20ae1e77', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => array( 'Authorization: Basic YWRtaW46TkxGN0ZQSUNXUV5VQU12lY0Qw==', ), )); $response = curl_exec($curl); curl_close($curl); echo $response;